<?php
/**
 * Created by 荣耀电竞.
 * User: 林子彦 <278805354@qq.com>
 * Date: 2018/6/12 0012
 * Time: 10:04
 */
Route::group(['prefix'=>'admin/weixin'], function() {
    //响应前面
    Route::group(['middleware' => 'permission'], function () {
        //=======================================================用户操作===============================================================
        Route::get('/user/index', ['uses' => 'UserController@index']);  //微信首页
        Route::get('/withdraw/index', ['uses' => 'WithdrawController@index']);  //提现首页列表
        Route::get('/withdraw/show', ['uses' => 'WithdrawController@show']);  //提现首页列表
        Route::get('/user/show', ['uses' => 'UserController@show']);  //用户信息显示
        Route::get('/user/shop', ['uses' => 'UserController@shop']);  //商店列表
        Route::get('/user/edit', ['uses' => 'UserController@edit']);  //商店列表
    });
    //数据响应
    Route::group(['middleware' => ['permission','response','transaction']], function () {
        Route::post('/user/index', ['uses' => 'UserController@index']);  //微信首页提交数据
        Route::post('/user/freeze', ['uses' => 'UserController@freeze']);  //冻结用户

        Route::post('/withdraw/index', ['uses' => 'WithdrawController@index']);  //提现首页列表
        Route::post('/withdraw/applytrue', ['uses' => 'WithdrawController@applyTrue']);  //提现首页列表
        Route::post('/withdraw/applyerror', ['uses' => 'WithdrawController@applyError']);  //提现首页列表
        Route::post('/user/shop', ['uses' => 'UserController@shop']);  //商店列表
        Route::post('/user/edit', ['uses' => 'UserController@edit']);  //商店列表

    });
});